Expand description

Rust JSON-RPC Library

Rust support for the JSON-RPC 2.0 protocol.

Re-exports

pub extern crate base64;
pub extern crate serde_json;
pub use error::Error;
pub use client::Client;
pub use client::Transport;

Modules

Client support

Error handling

This module implements a minimal and non standard conforming HTTP 1.0 round-tripper that works with the bitcoind RPC server. This can be used if minimal dependencies are a goal and synchronous communication is ok.

This module implements a synchronous transport over a raw TcpListener. Note that it does not handle TCP over Unix Domain Sockets, see simple_uds for this.

Structs

A JSONRPC request object

A JSONRPC response object

Functions

Shorthand method to convert an argument into a Box<serde_json::value::RawValue>.

Shorthand method to convert an argument into a Box<serde_json::value::RawValue>. Since serializers rarely fail, it’s probably easier to use arg instead.